Automattic\Jetpack\Partner_Coupon A

Total Complexity 51
Dependencies 5
Dependents 0
Total lines 440
Lines of code 196
Logical lines of code 96
Comment lines 162
Methods 15
Properties 7

Methods 15

Method Rating Maintainability Complexity Lines of code
maybe_purge_coupon_by_availability_check()
A
48 7 37
maybe_purge_coupon()
S
55 7 20
get_coupon()
S
53 6 25
get_coupon_product()
S
58 5 16
get_coupon_partner()
S
58 5 15
catch_coupon()
S
56 4 18
get_coupon_preset()
S
62 4 11
maybe_purge_coupon_by_added_date()
S
61 3 13
array_keys_exist()
S
67 3 8
get_instance()
S
70 2 6
__construct()
S
81 1 3
register_coupon_admin_hooks()
S
65 1 10
delete_coupon_data()
S
71 1 8
get_supported_partners()
S
79 1 3
get_supported_presets()
S
79 1 3